//
//  KADayTableViewCell.m
//  KeepAccounts
//
//  Created by honeyrr on 2017/10/25.
//  Copyright © 2017年 honeyrr. All rights reserved.
//

#import "KADayTableViewCell.h"

@interface KADayTableViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *percent;
@property (weak, nonatomic) IBOutlet UILabel *money;

@end

@implementation KADayTableViewCell

-(void)setDayModel:(KADataBaseModel *)dayModel
{
    _dayModel = dayModel;
    self.imgView.image = [UIImage imageNamed:dayModel.imageName];
    self.name.text = dayModel.name;
    self.percent.text = dayModel.time;
    self.money.text = dayModel.money;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
